import request from '@/utils/request'

// 查询佣金对比批次列表
export function listContrast(query) {
  return request({
    url: '/hmk/contrast/list',
    method: 'get',
    params: query
  })
}


export function selectContrastDetailVoList(query) {
  return request({
    url: '/hmk/contrast/selectContrastDetailVoList',
    method: 'get',
    params: query
  })
}

// 查询佣金对比批次详细
export function getContrast(id) {
  return request({
    url: '/hmk/contrast/' + id,
    method: 'get'
  })
}

// 新增佣金对比批次
export function addContrast(data) {
  return request({
    url: '/hmk/contrast',
    method: 'post',
    data: data
  })
}

//入账
export function ruZhang(data) {
  return request({
    url: '/hmk/contrast/ruZhang',
    method: 'post',
    data: data
  })
}

// 修改佣金对比批次
export function updateContrast(data) {
  return request({
    url: '/hmk/contrast',
    method: 'put',
    data: data
  })
}

// 删除佣金对比批次
export function delContrast(id) {
  return request({
    url: '/hmk/contrast/' + id,
    method: 'delete'
  })
}
